//
//  MYGuideCommonDetailService.m
//  homeland
//
//  Created by Alawn on 13-10-24.
//  Copyright (c) 2013年 xzysun. All rights reserved.
//

#import "MYGuideCommonDetailService.h"
#import "CommonWorkGuideEntity.h"
#import "WorkQueryCell.h"
#import "WorkQuerySelectEntity.h"
#import "StreetWorkEntity.h"
#import "StreetWorkGuideEntity.h"
#import "OrgListItem.h"
#import "StreetWorkGuideOrgEntity.h"
#import "StreetGuidDetailController.h"
#import "StreetGuideDetailWebViewController.h"

@implementation MYGuideCommonDetailService
- (id)init
{
    self = [super init];
    if (self) {
//        _dataItemName = @"CommonWorkGuideEntity";
        self.fastSearchType = -1;//初始化
    }
    return self;
}
- (void)loadDataWithKey:(NSString *)keyOrNil
{
        //按街道筛选
    if ([self.dataType isEqualToString:@"SERVICE_ITEM"]) {
        _dataItemName = @"StreetWorkGuideEntity";
        
        [self doHttpPost:SERVER_URL_SEARCH_GUIDE_DETIAL_ITEM  path:[NSString stringWithFormat:@"/%@",keyOrNil] parameters:nil];

    } else {
        _dataItemName = @"CommonWorkGuideEntity";
        [self doHttpPost:SERVER_URL_SEARCH_GUIDE_DETIAL_ENTERPRISE  path:[NSString stringWithFormat:@"/%@",keyOrNil] parameters:nil];

    }

}


@end
